package com.dingding.study.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dingding.study.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (User)表数据库访问层
 *
 * @author liudingding
 * @since 2020-06-26 00:07:37
 */
@Mapper
@Repository
public interface UserMapper extends BaseMapper<User> {

    User queryById(Integer id);
    List<User> queryAllByLimit(@Param("offset") int offset, @Param("limit") int limit);
    List<User> queryAll(User user);
//    int insert(User user);
    int deleteById(Integer id);
    User queryUserByName(String username);

    int insertOrder(String uuid);
    int updateStock();
    int insertUser(String name);

}